<?php if (!defined('BASEPATH')) exit('No direct script access allowed');

/**
 * MY_DB_sqlite_utility
 *
 * @author Simon Emms <simon@simonemms.com>
 */
class MY_DB_sqlite_utility extends CI_DB_sqlite_utility {
    
    
    
    
    
    public function __construct($id = null) {
        
        $objCI = &get_instance();
        
        if(isset($objCI->db)) {
            if(is_array($objCI->db) && !is_null($id)) {
                if(array_key_exists($id, $objCI->db)) {
                    $this->db = $objCI->db[$id];
                }
            } else {
                $this->db = $objCI->db;
            }
            
        } else {
            /* No DB */
            show_error('no database connection');
        }
        
    }
    
    
    
    
    
}

?>